<!DOCTYPE html>
<html>
<head>
    <title></title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <div class="form-group col-sm-2" style="width: 15%">
                <input type="text" class="form-control" v-model="q.cameraName" @keyup.enter="query" placeholder="监控名称">
            </div>
            <div class="form-group col-sm-2" style="width: 15%;">
                <input type="text" class="form-control" v-model="q.ip" @keyup.enter="query" placeholder="ip">
            </div>
            <a class="btn btn-default" @click="query">查询</a>
			<#if shiro.hasPermission("jk:jkcamara:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("jk:jkcamara:update")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("jk:jkcamara:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal" style="width:35%;">
            <div class="form-group">
                <div class="col-sm-2 control-label">监控点名称</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="jkCamara.cameraName" placeholder="监控点名称"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">监控ip</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="jkCamara.ip" placeholder="监控ip"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">监控点编码</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="jkCamara.cameraIndexCode" placeholder="监控点编码"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">监控类型</div>
                <div class="col-sm-10">
                    <label class="radio-inline">
                        <input type="radio" name="type" value="00" v-model="jkCamara.type"/> 收银监控
                    </label>
                    <label class="radio-inline">
                        <input type="radio" name="type" value="01" v-model="jkCamara.type"/> 卡口车流监测
                    </label>
                    <label class="radio-inline">
                        <input type="radio" name="type" value="02" v-model="jkCamara.type"/> 客流监测
                    </label>
                    <label class="radio-inline">
                        <input type="radio" name="type" value="03" v-model="jkCamara.type"/> 安防监控
                    </label>
                    <label class="radio-inline">
                        <input type="radio" name="type" value="04" v-model="jkCamara.type"/> 车位监控
                    </label>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">部门区域</div>
                <label class="radio-inline">
                    <input type="radio" name="deptId" value="3" v-model="jkCamara.deptId"/> 南区
                </label>
                <label class="radio-inline">
                    <input type="radio" name="deptId" value="4" v-model="jkCamara.deptId"/> 北区
                </label>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">排序</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="jkCamara.sort" placeholder="排序"/>
                </div>
            </div>
			<div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" id="btnSaveOrUpdate" data-loading-text="保存中..." @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>
<div id="deptLayer" style="display: none;padding:10px;">
    <ul id="deptTree" class="ztree"></ul>
</div>
<script src="${request.contextPath}/statics/js/modules/jk/jkcamara.js?_${.now?long}"></script>
</body>
</html>